<script src="../lib/jquery.js"></script>
<script>
// When creating new elements (or selecting existing ones), 
// jQuery returns the elements in a collection
$(function(){
	// Comparing DOM elements (with more readable variable names).	 
	var $collection1 = $( "#logo" ); //jQuery Object
	var $div1 = $collection1.eq( 0 ); //jQuery Object
	var div1 = $collection1.get( 0 ); //HTML Element	
	
	console.log($collection1 + "," + $div1 + "," + div1);
	
	var $collection2 = $( "#logo" );
	var $div2 = $collection2.eq( 0 );
	var div2 = $collection2.get( 0 );	
	
	console.log( $collection1 == $collection2 ); // false
	console.log( $div1 == $div2 ); // false
	console.log( div1 == div2 ); // true
});
</script>

<div id="logo"></div>